package com.panghu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 成绩管理表
 * </p>
 *
 * @author huahua
 * @since 2022-03-19
 */
public class Score implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分数编号
     */
    @TableId(value = "scoreId", type = IdType.AUTO)
    private Integer scoreId;

    /**
     * 考试编号
     */
    @TableField("examCode")
    private Integer examCode;

    /**
     * 学号
     */
    @TableField("studentId")
    private Integer studentId;

    /**
     * 课程名称
     */
    private String subject;

    /**
     * 平时成绩
     */
    @TableField("ptScore")
    private Integer ptScore;

    /**
     * 期末成绩
     */
    @TableField("etScore")
    private Integer etScore;

    /**
     * 总成绩
     */
    private Integer score;

    /**
     * 答题日期
     */
    @TableField("answerDate")
    private String answerDate;


    public Integer getScoreId() {
        return scoreId;
    }

    public void setScoreId(Integer scoreId) {
        this.scoreId = scoreId;
    }

    public Integer getExamCode() {
        return examCode;
    }

    public void setExamCode(Integer examCode) {
        this.examCode = examCode;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public Integer getPtScore() {
        return ptScore;
    }

    public void setPtScore(Integer ptScore) {
        this.ptScore = ptScore;
    }

    public Integer getEtScore() {
        return etScore;
    }

    public void setEtScore(Integer etScore) {
        this.etScore = etScore;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getAnswerDate() {
        return answerDate;
    }

    public void setAnswerDate(String answerDate) {
        this.answerDate = answerDate;
    }

    @Override
    public String toString() {
        return "Score{" +
        "scoreId=" + scoreId +
        ", examCode=" + examCode +
        ", studentId=" + studentId +
        ", subject=" + subject +
        ", ptScore=" + ptScore +
        ", etScore=" + etScore +
        ", score=" + score +
        ", answerDate=" + answerDate +
        "}";
    }
}
